package com.hxl.tech.gateway.auth.annotate;


import com.hxl.tech.gateway.auth.util.EnumValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target( {
        ElementType.METHOD,
        ElementType.FIELD,
        ElementType.ANNOTATION_TYPE,
        ElementType.CONSTRUCTOR,
        ElementType.PARAMETER
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {EnumValidator.class})
public @interface EnumCheck {

    String regexp() default "";

    String message() default "数据类型不匹配";

    String enumString();

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}

